﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Entidades="clr-namespace:BancoSim.Entidades.Entidades;assembly=BancoSim.Entidades" xmlns:Forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" mc:Ignorable="d" x:Class="BancoSim.Ventanas_Modales.cwAgregarProceso"
        Title="Agregar Proceso" WindowStartupLocation="CenterScreen" Height="162" Width="476" Loaded="Window_Loaded">
    <Window.Resources>
        <CollectionViewSource x:Key="clGrupoViewSource" d:DesignSource="{d:DesignInstance {x:Type Entidades:clGrupo}, CreateList=True}"/>
        <CollectionViewSource x:Key="clServicioViewSource" d:DesignSource="{d:DesignInstance {x:Type Entidades:clServicio}, CreateList=True}"/>
    </Window.Resources>
    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <Grid Grid.Column="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                
                <Grid Grid.Row="0">
                    
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <Label Grid.Column="0" Content="Servicio:" HorizontalAlignment="Left" Width="70" Height="30" Margin="2"/>

                    <Grid Grid.Column="1" x:Name="gdServicio" Margin="2" DataContext="{StaticResource clServicioViewSource}">
                        <ComboBox x:Name="clServicioComboBox" Width="180" HorizontalAlignment="Right" Height="23" DisplayMemberPath="NombreServicio" ItemsSource="{Binding}" SelectedValuePath="NombreServicio">
                            <ComboBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <VirtualizingStackPanel/>
                                </ItemsPanelTemplate>
                            </ComboBox.ItemsPanel>
                        </ComboBox>
                    </Grid>
                    <!--<Grid x:Name="gdGrupo" DataContext="{StaticResource clGrupoViewSource}">
                        <Label Content="Grupo:" Height="30" Width="50" HorizontalAlignment="Left"/>
                        <ComboBox x:Name="clGrupoComboBox" Width="150" Margin="60,0,0,0" Height="23" DisplayMemberPath="NombreGrupo" ItemsSource="{Binding}" SelectedValuePath="NombreGrupo" SelectionChanged="clGrupoComboBox_SelectionChanged">
                            <ComboBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <VirtualizingStackPanel/>
                                </ItemsPanelTemplate>
                            </ComboBox.ItemsPanel>
                        </ComboBox>
                    </Grid>-->
                </Grid>
                
                <Grid Grid.Row="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <Label Grid.Column="0" Content="Peso:" Height="30" HorizontalAlignment="Left" Margin="2" Width="40"/>
                    <Label Grid.Column="1" Content="M:" Height="30" Width="30" HorizontalAlignment="Left" Margin="2"/>
                    <TextBox Grid.Column="2" x:Name="txbMinutos" Height="20" Width="20" HorizontalAlignment="Left" Margin="2" Text="0" ToolTip="Minutos"/>
                    <Label Grid.Column="3" Content="S:" Height="30" Width="20" HorizontalAlignment="Left" Margin="2"/>
                    <TextBox Grid.Column="4" x:Name="txbSegundos" Height="20" Width="20" Margin="2" HorizontalAlignment="Left" ToolTip="Segundos" Text="10"/>
                    <Label Grid.Column="5" Content="MS:" Height="30" Width="30" Margin="2" HorizontalAlignment="Left"/>
                    <TextBox Grid.Column="6" x:Name="txbMiliSegundos" Height="20" Width="30" Margin="2" HorizontalAlignment="Left" ToolTip="Milisegundos" Text="0"/>
                    <!--<Label Grid.Column="0" Margin="2" Content="Prioridad:" Width="60" HorizontalAlignment="Left"/>

                    <ComboBox Grid.Column="1" x:Name="cbxPrioridad" HorizontalAlignment="Left" Margin="2" Width="40" SelectedIndex="0">
                        <ComboBoxItem Content="1"/>
                        <ComboBoxItem Content="2"/>
                        <ComboBoxItem Content="3"/>
                        <ComboBoxItem Content="4"/>
                        <ComboBoxItem Content="5"/>
                        <ComboBoxItem Content="6"/>
                        <ComboBoxItem Content="7"/>
                    </ComboBox>-->

                </Grid>
            </Grid>
            
            <Grid Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid Grid.Row="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <Label Grid.Column="0" Margin="2" Content="Prioridad:" Width="60" HorizontalAlignment="Left"/>

                    <ComboBox Grid.Column="1" x:Name="cbxPrioridad" HorizontalAlignment="Left" Margin="2" Width="40" SelectedIndex="0">
                        <ComboBoxItem Content="1"/>
                        <ComboBoxItem Content="2"/>
                        <ComboBoxItem Content="3"/>
                        <ComboBoxItem Content="4"/>
                        <ComboBoxItem Content="5"/>
                        <ComboBoxItem Content="6"/>
                        <ComboBoxItem Content="7"/>
                    </ComboBox>

                </Grid>
                <Grid Grid.Row="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    
                    <Label Grid.Column="0" Content="Peticion especial:" HorizontalAlignment="Left" Margin="2" Width="100"/>
                    <CheckBox Grid.Column="1" HorizontalAlignment="Left" x:Name="ckbPeticionE" Height="20" Width="20"/>
                </Grid>
                <Grid Grid.Row="2">
                   
                </Grid>
            </Grid>


            
        </Grid>

        <Grid Grid.Row="1">
          <Button Height="30" Width="100" Margin="2" Content="Agregar" Grid.Row="1" Click="Button_Click"/>  
        </Grid>
    </Grid>
</Window>
